using System;
using Jandaya.Framework.Application;

namespace Jandaya.Framework
{
	/// <summary>
	/// Classe base para todos os objetos
	/// </summary>
	public class JandayaObject
	{
		private OID _ObjectID = new OID();
		private ObjectState _State =  ObjectState.Created;
		
		public JandayaObject()
		{
			_State = ObjectState.Created;
		}
		
		public AppManager Manager{ get; set; }
		
		public OID ID {
			get {return _ObjectID;} 
		}		
		
				
		public ObjectState State{ 
			get {
				return _State;
			} 
		}		
		
		public void SetState(ObjectState pValue){
			_State = pValue;
		}
			
	}
}

